@model ExpertSMS.Models.MakeFood

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Serves)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Serves)
    @Html.ValidationMessageFor(model => model.Serves)
</div>

<div class="editor-label">
    Kitchen
</div>
<div class="editor-field">
    @Html.HiddenFor(model=>model.KitchenID,((ExpertSMS.Models.Kitchen)ViewBag.Kitchen).KitchenID)
    @Html.LabelFor(model => model.Kitchen.Name, ((ExpertSMS.Models.Kitchen)ViewBag.Kitchen).Name)
    @Html.ValidationMessageFor(model => model.KitchenID)
</div>
<div class="editor-label">
    Food
</div>
<div class="editor-field">
    @Html.HiddenFor(model => model.FoodID, ((ExpertSMS.Models.Food)ViewBag.Food).FoodID)
    @Html.LabelFor(model=>model.Food.Name,((ExpertSMS.Models.Food)ViewBag.Food).Name)
    
    @Html.ValidationMessageFor(model => model.FoodID)
</div>
